import 'package:riverpod_t/page/home/data/model/cartoon_model_entity.dart';

sealed class NovelOpType {
  const NovelOpType();
}

/// 无操作
class NoneOp extends NovelOpType {
  const NoneOp();
}

/// 收藏||取消收藏
class CollectionOp extends NovelOpType {
  final CartoonModelDataFeeds model;
  final int type; // 1:收藏 2:取消收藏
  CollectionOp({required this.model, required this.type});
}

/// 刷新列表
class RefreshOp extends NovelOpType {
  final bool isRefresh;
  RefreshOp({required this.isRefresh});
}

class HomeListOpState {
  final NovelOpType op;

  /// 操作成功
  final bool? isSuccess;

  HomeListOpState({required this.op, this.isSuccess});
}
